﻿<UserControl x:Class="WpfImageDuplicates.FileNameFilterControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:y="clr-namespace:WpfImageDuplicates"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d">
    <Grid Height="Auto" Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Center">
        <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
            <TextBlock FontSize="9" Text="File Name Filter: " />
            <TextBox FontSize="9"  x:Name="txtFileNameFilter" Text="{Binding Mode=TwoWay, Path=FileNameFilter}" MinWidth="80" Width="Auto"
                     KeyDown="txtFileNameFilter_KeyDown"/>
            <TextBlock FontSize="9" Text=" " />
            <TextBlock FontSize="9" Text="Size must be >= " />
            <TextBox FontSize="9"  x:Name="txtMinSize" Text="{Binding Mode=TwoWay, Path=MinSizeFilter}" MinWidth="80" Width="Auto"
                     KeyDown="txtMinSize_KeyDown"/>
            <TextBlock FontSize="9" Text=" and &lt;= " />
            <TextBox FontSize="9"  x:Name="txtMaxSize" Text="{Binding Mode=TwoWay, Path=MaxSizeFilter}" MinWidth="80" Width="Auto"
                     KeyDown="txtMaxSize_KeyDown"/>
        </StackPanel>
    </Grid>
</UserControl>
